package com.yangmf.auto_message_handle.pojo.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;
import java.time.LocalDateTime;

@Slf4j
@AllArgsConstructor
@NoArgsConstructor
@lombok.Data
@Schema(name = "Event", description = "事件类")
public class Event implements Serializable {

    @Schema(description = "事件id")
    private Long id;

    @Schema(description = "事件名称")
    private String eventName;

    @Schema(description = "事件开始时间")

    private LocalDateTime startTime;

    @Schema(description = "事件uuid")
    private String eventUuid;

    /**
     * 0：通知
     * 1：比赛
     * 2：作业
     * 3：志愿
     * 4：其他
     */
    @Schema(description = "事件类型", allowableValues = {"0", "1", "2", "3", "4"})
    private Integer eventType;

    /**
     * 可不可以通过数库添加映射读取?
     */
    @Schema(description = "事件学科")
    private String eventSubject;

    @Schema(description = "事件文字信息")
    private List<Mesg> eventContent;

    @Schema(description = "事件图片信息")
    private List<Mesg> eventPic;

    @Schema(description = "事件文档信息")
    private List<Mesg> eventDoc;

    @Schema(description = "事件文件信息")
    private List<Mesg> eventFile;

    @Schema(description = "事件包含的消息的编号")
    private List<Integer> event_message_id;
}